6d969aaafa589c860bddadd0cb25b325455ad864,platform/platform-tests/testSrc/com/intellij/execution/GeneralCommandLineTest.java,GeneralCommandLineTest,execAndGetOutput,#GeneralCommandLine#,270
Before Change
private static String execAndGetOutput(GeneralCommandLine commandLine) throws ExecutionException {
commandLine.setRedirectErrorStream(true);
ProcessOutput output = ExecUtil.execAndGetOutput(commandLine);
String stdout = output.getStdout();
assertEquals("Command:\n" + commandLine.getCommandLineString() + "\nOutput:\n" + stdout, 0, output.getExitCode());
return stdout;
}
private static Pair<GeneralCommandLine, File> makeHelperCommand(@Nullable File copyTo,
After Change
if (ec != 0) {
fail("Command:\n" + commandLine.getCommandLineString() + "\nStdOut:\n" + output.getStdout() + "\nStdErr:\n" + output.getStderr());
}
return output.getStdout();
}
private Pair<GeneralCommandLine, File> makeHelperCommand(@Nullable File copyTo,